defmodule ElixirBlackjack.MixProject do
  use Mix.Project

  def project do
    [
      app: :elixir_blackjack,
      version: "0.1.0",
      elixir: "~> 1.17",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      releases: releases(),
      escript: escript()
    ]
  end

  def application do
    [
      extra_applications: [:logger]
    ]
  end

  defp deps do
    []
  end

  defp releases do
    [
      elixir_blackjack: [
        version: "0.1.0",
        # 你的应用名
        applications: [elixir_blackjack: :permanent],
        # 指定生成 Windows 可执行文件
        include_executables_for: [:windows],
        # 打包步骤
        steps: [:assemble, :tar],
        main_module: ElixirBlackjack
      ]
    ]
  end

  defp escript do
    [main_module: ElixirBlackjack]
  end
end
